import { OpenHelper } from '@ohos/dataorm';
import { Database } from '@ohos/dataorm';

export class MyOpenHelper extends OpenHelper {
  constructor(context: any, name: string) {
    super(context, name);
  }

  public async onCreateDatabase(db: Database): Promise<void> {
    super.onCreateDatabase(db);
  }

  async onUpgradeDatabase(db: Database, oldVersion: number, newVersion: number): Promise<void> {
    // do nothing
    console.log("ssss----->onUpgradeDatabase oldVersion:" + oldVersion + ";newVersion:" + newVersion);
  }
}